import request from '@/utils/request'

// 查询充值方案列表
export function listPayWithdrawPlan(query) {
  return request({
    url: '/system/payWithdrawPlan/list',
    method: 'get',
    params: query
  })
}

// 查询充值方案详细
export function getPayWithdrawPlan(id) {
  return request({
    url: '/system/payWithdrawPlan/' + id,
    method: 'get'
  })
}

// 新增充值方案
export function addPayWithdrawPlan(data) {
  return request({
    url: '/system/payWithdrawPlan',
    method: 'post',
    data: data
  })
}

// 修改充值方案
export function updatePayWithdrawPlan(data) {
  return request({
    url: '/system/payWithdrawPlan',
    method: 'put',
    data: data
  })
}

// 删除充值方案
export function delPayWithdrawPlan(id) {
  return request({
    url: '/system/payWithdrawPlan/' + id,
    method: 'delete'
  })
}
